//
//  ManyFatherViewController.m
//  ObjectCProject
//
//  Created by lvfeijun on 2021/5/21.
//

#import "ManyFatherViewController.h"
#import "SEEProxy.h"
#import "NSProxyFish.h"
#import "NSProxyPeople.h"

@interface ManyFatherViewController ()

@end

@implementation ManyFatherViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    NSProxyFish * fish = [NSProxyFish new];
    NSProxyPeople * people = [NSProxyPeople new];
    //多继承
    SEEProxy * fishMan = [SEEProxy proxyWithObjs:people,fish, nil];

    if ([fishMan respondsToSelector:@selector(say)]) {
        [fishMan performSelector:@selector(say)];
    }
    if ([fishMan respondsToSelector:@selector(swimming)]) {
        [fishMan performSelector:@selector(swimming)];
    }
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
